<%@ page import="org.jasig.cas.client.validation.Assertion" %>
<%@ page import="org.jasig.cas.client.util.AssertionHolder" %>
<%@ page import="org.jasig.cas.client.authentication.AttributePrincipal" %>
<%@ page import="java.util.Map" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<head>
    <meta charset="UTF-8">
    <title>运维人员——我的信息</title>
    <link  rel="stylesheet" type="text/css" href="<%= basePath%>resources/css/pcrepairman.css" />
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>resources/css/jNotify.jquery.css"/>
    <script src="<%= request.getContextPath()%>resources/js/pcrepairman.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/angular.min.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/PCrepairmanController.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/echarts.min.js" ></script>

    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/jNotify.jquery.js"></script>
</head>

<body ng-app="myapp">
<!--头部开始-->
<%
    Assertion assertion = AssertionHolder.getAssertion();

    AttributePrincipal ap =  assertion.getPrincipal();   //获取AttributePrincipal对象，这是客户端对象

    String name = ap.getName();

    Map<String,Object> att = ap.getAttributes();//获取属性值，为一个Map类型。

%>

<div id="head">
    <div id="head_con">
        <p class="title">智能报修系统</p>
        <div id="head_right">
            <a href="#">
						<span>
						<img src="../../resources/img/email.png"/>
					</span> 收件箱
            </a>
            <button id="downloadAPP">APP下载</button>
        </div>
    </div>
</div>
<!--头部结束-->
<!--左边开始-->
<!--左边-->
<div id="staffLeft">
    <div id="staffLeftCon">
        <!--运维人员的信息-->

        <div id="staffInfo" ng-controller="InformationCtrl">
            <!--运维人员姓名-->
            <p class="staffName">{{repairmaninfo.userName}}</p>
            <!--运维人员学号-->
            <p class="staffNum"><%=name %></p>
            <input type="hidden" class="useraccount" value="<%=name %>"/>
            <!--运维人员职位-->
            <p class="place">运维人员</p><!--运维人员写死了，需要可以再次修改-->
        </div>

        <style>
            #operation a:link,a:visited,a:hover{
                text-decoration: none;
                color: #4e7500;
            }
        </style>

        <div id="operation">
            <ul >

                <a href="/PCrepairman_one"><li id="one" >我的工单</li></a>
                <a href="/PCrepairman_two"><li id="two" >待处理</li></a>
                <a href="/PCrepairman_three"><li id="three" >我的绩效</li></a>
                <a href="/PCrepairman_four"> <li id="four" class="active">我的信息</li></a>
            </ul>
        </div>
        <div class="phoneNum" ng-controller="PhoneInformationCtrl">
            服务电话：{{phoneNum}}
        </div>
    </div>
</div>

<!--左边结束-->
<!--右边开始-->
<div id="pushOrdersRight">



    <div id="pushOrdersRightShow">
        <!--我的工单-->

        <!--甩单弹出框-->
        <div id="receive2" ng-controller="suaiDanCtrl" class="hidden">
            <div id = "sdpeople">可甩单的运维人员:</div>
            <select  ng-model="receiveTwo" ng-options="receive.userName for receive in receives">
            </select>

            <h3 class="chooseitem">你选择的是  工号：{{receiveTwo.userAccount}}   姓名： {{receiveTwo.userName}}  熟悉领域{{receiveTwo.type}}</h3>


            <div id="suaidanbuttom"><button ng-click="gosuaidan()">甩单</button>

                <button ng-click="suaidanCancel()">取消</button></div>



        </div>









        <!--我的信 息-->

        <div id=" MYINFORMATION" class="list" ng-controller="peopleInformationCtrll">
            <form id="myInformation">
                <div class="hang"><span class="information">学工号:</span><input type="text"  ng-value="$root.repairmaninfo.userAccount" readonly="true"/></div><br/>
                <div class="hang"><span class="information">姓名:</span><input type="text" ng-value="$root.repairmaninfo.userName" readonly="true"/></div><br/>
                <div class="hang"><span class="information">地址:</span><input  id="PeopelAdress" placeholder="请输入你的地址"  ng-model="peopleAddress" ng-value="$root.repairmaninfo.userAddress"/></div><br/>
                <div class="hang"><span class="information">电话:</span><input  id="PeopelPhone" placeholder="请输入你的电话号码"  ng-model="peoplePhone" ng-value="$root.repairmaninfo.userPhone"/></div><br/>
                <button id="saveInformation" ng-disabled="saveBtn" type="button" ng-click="changephone()">保存</button>

            </form>


        </div>

    </div>

</div>
<!--右边结束-->




<%--<div id="footer" class="footer">--%>
    <%--<p class="footerWord">版权所有&nbsp;四川旅游学院</p>--%>
<%--</div>--%>


</body>

</html>
